package com.virgo.demo.system.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SystemResourceBo implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	private Long id;

	@NotBlank(message = "节点名称不能为空")
	private String name;

	@NotBlank(message = "节点标识不能为空")
	private String rightKey;

	@NotNull(message = "上级节点不能为空")
	private Long parentId;

	@NotNull(message = "是否菜单不能为空")
	private Integer isMenu;
}